% This make.m is used under Windows

switch computer
    case 'PCWIN64'
        % add -largeArrayDims on 64-bit machines
        mex -O -largeArrayDims -I..\ -c ..\svm.cpp
        mex -O -largeArrayDims -I..\ -c svm_model_matlab.c
        mex -O -largeArrayDims -I..\ svmtrain.c svm.obj svm_model_matlab.obj
        mex -O -largeArrayDims -I..\ svmpredict.c svm.obj svm_model_matlab.obj
        mex -O -largeArrayDims libsvmread.c
        mex -O -largeArrayDims libsvmwrite.c
        
        movefile('libsvmread.mexw64', '../')
        movefile('libsvmwrite.mexw64', '../')
        movefile('svm.o', '../')
        movefile('svm_model_matlab.obj', '../')
        movefile('svmpredict.mexw64', '../')
        movefile('svmtrain.mexw64', '../')
    case 'GLNX86'
        make_on_32bit
    otherwise
end
